<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>奖励记录</title>
    <link rel="stylesheet" href="./css/rule.css"/>
    <script src="./js/htmlfontsize.js"></script>
    <script src="./js/vue.js"></script>
    <script src="./js/tool.js"></script>
    <script src="./js/flex.js"></script>
</head>
<body>

<div v-cloak="" id="app" class="log-content">
    <div v-for="(item, index) in log_list" class="content-line">
        <p>{{item.date}}</p>
        <p>{{item.msg}}</p>
        <p>{{item.type}}</p>
    </div>

 
</div>


</body>

<script>
    var app = new Vue({
        el: '#app',
        data: {
            log_list: [],
            baseUrl: 'http://ztaudio-activity.kekestar.cn',
            baseApiUrl: "https://sl-api.bianxiangapp.com:8866",
        },
        computed: {},
        mounted() {
            this.getAwardLog()
        },
        methods: {
            getAwardLog() {
                let _this = this
                _this.user_id = kk.$_GET['user_id'];
                kk.ajaxGet(_this.baseUrl + '/dish/getGiftLog', {
                    user_id: _this.user_id
                }, function (res) {
                    if (res.code == 200) {
                        _this.log_list = res.data
                    }
                })
            }
        }
    })
</script>
</html>
